<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <!-- 
    zepto压缩后只有9.6kb
    同时zepto实现了jquery大部分核心功能

    https://www.cnblogs.com/colima/p/5289386.html

    zepto的默认对象为Zepto
  -->

  <div>124215421</div>
  <script src="./zepto.js"></script>
  <script src="./touch.js"></script>
  <script>
    $(function () {
      $('div').on('tap', function (){
        alert($(this).text())
      })

      $p = $('<p>435353</p>', {
        id: 'a',
        a: 1
      })

      $p.appendTo('div')
    })
  
    
  </script>
</body>
</html>